package com.sibrary.utils;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Environment;

/**
 * Defines constants.
 */
public class Constants {

	/**
	 * 设置特定的键值
	 */

	public static final String PREFERENCE_KEY_HOMEPAGE = "homepage";
	public static final String PREFERENCE_KEY_ENABLE_JAVASCRIPT = "enable_javascript";
	public static final String PREFERENCE_KEY_ENABLE_LOAD_IMAGE = "enable_load_image";

	/**
	 * Specials urls.
	 */
	public static final String URL_ABOUT_BLANK = "about:blank";

	/**
	 * 配置文件引用，在BooxooMainActivity中初始化
	 */
	public static SharedPreferences mSharedPreferences;

	/**
	 * 应用上下文, 在BooxooMainActivity中初始化
	 */
	public static Context mContext;
	
	/**
	 * 下载个数限制
	 */
	public static final int TOTAL = 3;

	/**
	 * 进度条最大值, 最小值
	 */
	public static final int PROGRESS_MAX = 100;
	public static final int PROGRESS_MIN = 0;

	/**
	 * 下载过程中事件名称
	 */
	public final static int MESSAGE_DOWNLOAD_SUCCESSFUL = 1102;
	public final static int MESSAGE_DOWNLOAD_FAILED = 1103;
	public final static int MESSAGE_DOWNLOAD_START = 1104;
	public final static int MESSAGE_DOWNLOAD_RUNNING = 1105;
	public final static int MESSAGE_DOWNLOAD_FINISH = 1106;
	public final static int MESSAGE_DOWNLOAD_CANCEL = 1107;
	public final static int MESSAGE_DOWNLOAD_NO_SPACE = 1108;
}
